import request from '@/utils/request'
import scope from './scope'
const apiPrefix = `${process.env.VUE_APP_BASE_API}/${scope}/taskitem/`

// 项目管理
export const getProject = (params, config = {}) => {
  return request.get(apiPrefix + 'get', { params: params }, config)
}
export const getTaskListPage = (params, config = {}) => {
  params = params || {}
  return request.post(apiPrefix + 'getpage', params, config)
}
export const taskBegin = (params, config = {}) => {
  params = params || {}
  return request.post(apiPrefix + 'taskbegin', params, config)
}
export const getUpTask = (params, config = {}) => {
  return request.get(apiPrefix + 'getuptask', { params: params }, config)
}
export const updateTask = (params, config = {}) => {
  params = params || {}
  return request.post(apiPrefix + 'addhis', params, config)
}
export const getTaskHisPage = (params, config = {}) => {
  params = params || {}
  return request.post(apiPrefix + 'gettaskhispage', params, config)
}

